package com.javaeedev.junit;

/**
 * A fake Service for test.
 * 
 * @author Xuefeng
 */
public class ServiceStub implements Service {

    public void signon(String username, String password) {
        if(username==null || password==null)
            throw new NullPointerException();
        if(!username.equals(password))
            throw new RuntimeException("Sign on failed.");
    }

}
